<?php

namespace app\index\controller;

use think\Controller;
use think\Request;

class User extends Controller
{

    public function index()
    {
        $user = new \app\index\model\User();
        try {
            $user = $user->user();
            return ['status' => true];
        } catch (\Exception $e) {
            return ['status' => false, 'error' => $e->getMessage()];
        }
    }
}
